package com.young.springdemo.service.commandchain;

public class ZhuRen extends QingjiaApprove {
    public ZhuRen(String name) {
        super(name);
    }

    @Override
    public void requestQingjia(QingjiaDetail qingjiaDetail) {
        if (qingjiaDetail.getDays() < 3) {
            System.out.println("主任" + this.name + "同意了" + qingjiaDetail.getName() + "的" + qingjiaDetail.getDays() +
                    "天請假申請,原因:" + qingjiaDetail.getReason());
        } else {
            this.qingjiaApprove.requestQingjia(qingjiaDetail);
        }
    }
}
